const Crypto = require('crypto-js');
var res = Crypto.HmacSHA1("123456", "12345678").toString()
console.log(res);
console.log(res.length);


var text = '/api/home/getnewsflash?firstrankindex=&lastrankindex=1749347712111&lastranktime=1749347712111&pagesize=10pathString{}bf5e0d0443eebb8f1f6dd0a13364c89c'
var secrect = 'iLAgiQ6rliBl4vl8kkiLkQBkgNk4NLvigvWlWl1iLk4NLvigvWlWlrkAL6Akkrvrrr1iLk4NLvi4grllrkAL6Akkrvrrr1ALBlkgkllriiLAgiQ6rliBl4vl8kkiLkQBkgNk4NLvigvWlWl1iLk4NLvigvWlWlrkAL6Akkrvrrr1iLk4NLvi4grllrkAL6Akkrvrrr1ALBlkgkllri'

var res = Crypto.HmacSHA512(text, secrect).toString()
console.log(res);
